package experiment2;


public class Event {

    private String eventName;
    private int joinNumber;

    public Event(String eventName, int joinNumber) {
        this.eventName = eventName;
        this.joinNumber = joinNumber;
    }

    public Event() {
    }

    public void joinEvent(Athlete athlete){
        System.out.println(this.eventName+" "+athlete.getName());

    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public int getJoinNumber() {
        return joinNumber;
    }

    public void setJoinNumber(int joinNumber) {
        this.joinNumber = joinNumber;
    }
}
